% ===============================
%   FILE: config.tex
%   DATE: 14. Sep 2006
% ===============================


% Package for the document standard text format (Danish=>)dokumentets standart tekstformatering
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
%\usepackage[danish]{babel}
\usepackage{graphicx}
\usepackage{color}
\usepackage{colortbl}
\usepackage{listings}
\usepackage{rotating}
%\usepackage{flafter}
\usepackage[T1]{fontenc}
%\usepackage[scaled]{garamond}
%\renewcommand*\familydefault{\sfdefault}

\usepackage{amsmath,amssymb,fullpage}
\usepackage[nottoc]{tocbibind}
\usepackage{pst-plot}
%\usepackage[dvipdfm,pdfborder={0 0 0},hyperindex,plainpages=false]{hyperref}
\usepackage{hyperref}
\usepackage{makeidx,shortvrb,latexsym}
\usepackage{float}
%\usepackage{afterpage}
\usepackage{url}
% Fancy header stuff
\usepackage{fancyhdr}
%\usepackage{rapport}
%\usepackage{pdfpages}
\pagestyle{fancyplain}
\usepackage{amsmath}
%\usepackage{subfigure}
\usepackage{longtable}
\usepackage{subfigure}
\usepackage{booktabs}
\usepackage[off]{auto-pst-pdf}
\usepackage{newalg}
\headheight 13pt
\headsep 5pt

\usepackage{framed}
\usepackage{textcomp}

\definecolor{listinggray}{gray}{0.9}
\definecolor{lbcolor}{rgb}{0.9,0.9,0.9}

\newcounter{CodeBlockCounter}
%\usecounter{CodeBlockCounter}
%\setcounter{CodeBlockCounter}{0}

\lstdefinelanguage{ZethJava}[]{Java}
{
    morestring=[b]",stringstyle={[b]\ttfamily\color[rgb]{0,0,1}},
}
\lstset{
         basicstyle=\footnotesize\ttfamily, % Standardschrift
         %numbers=left,               % Ort der Zeilennummern
         numberstyle=\tiny,          % Stil der Zeilennummern
         %stepnumber=2,               % Abstand zwischen den Zeilennummern
         numbersep=5pt,              % Abstand der Nummern zum Text
         tabsize=2,                  % Groesse von Tabs
	language=ZethJava,
	keywordstyle=\bfseries\ttfamily\color[rgb]{0.7,0.3,0.5},%\color[rgb]{0.3,0,0.3},%\color[RGB]{143,47,85},
        %Standard additional keywords in a different color.
        emph={[0]t}, emphstyle={[0]\color[rgb]{0,0,1}},
        emph={[1]i}, emphstyle={[1]\color[rgb]{0,0,1}},
        emph={[2]j}, emphstyle={[2]\color[rgb]{0,0,1}},
        emph={[3]k}, emphstyle={[3]\color[rgb]{0,0,1}},
        %morestring=[b][\color[rgb]{0,0,1}]{"}{"},
        %stringstyle=\ttfamily\color[rgb]{0,0,1},
        emph={[4]man}, emphstyle={[4]\color[rgb]{0,0,1}},
        emph={[5]diamonds}, emphstyle={[5]\color[rgb]{0,0,1}},
        emph={[6]parent}, emphstyle={[6]\color[rgb]{0,0,1}},
        emph={[7]move}, emphstyle={[7]\color[rgb]{0,0,1}},
        emph={[8]manhattanDistance}, emphstyle={[8]\color[rgb]{0,0,1}},
        emph={[9]traveled}, emphstyle={[9]\color[rgb]{0,0,1}},
        emph={[10]id}, emphstyle={[10]\color[rgb]{0,0,1}},
    	emph={[11]pushedDiamond}, emphstyle={[11]\color[rgb]{0,0,1}},
    	emph={[12]map}, emphstyle={[12]\color[rgb]{0,0,1}},
    	emph={[13]AStarNodesExpanded}, emphstyle={[13]\color[rgb]{0,0,1}},
    	emph={[14]nodesExpanded}, emphstyle={[14]\color[rgb]{0,0,1}},
    	emph={[15]previousPath}, emphstyle={[15]\color[rgb]{0,0,1}},
    	emph={[16]----------------------------------------------------}, emphstyle={[16]\color[rgb]{0,0,1}},
    	emph={[17]ROTATE_REVERSE}, emphstyle={[17]\color[rgb]{0,0,1}},
    	emph={[18]ROTATE_REVERSE_CONTINUOUS}, emphstyle={[18]\color[rgb]{0,0,1}},
    	emph={[19]ROTATE_REVERSE_DEGREE}, emphstyle={[19]\color[rgb]{0,0,1}},
    	emph={[20]ROTATE_REVERSE_TO_RADIAN}, emphstyle={[20]\color[rgb]{0,0,1}},
    	emph={[21]ROTATE_REVERSE_TO_DEGREE}, emphstyle={[21]\color[rgb]{0,0,1}},
    	emph={[22]ROTATE_REVERSE_DIR_DEGREE}, emphstyle={[22]\color[rgb]{0,0,1}},
    	emph={[23]ROTATE_REVERSE_VIA_DEGREE}, emphstyle={[23]\color[rgb]{0,0,1}},
    	emph={[24]STOP_ROTATE}, emphstyle={[24]\color[rgb]{0,0,1}},
    	emph={[25]STOP_EMERGENCY}, emphstyle={[25]\color[rgb]{0,0,1}},
    	emph={[26]MOVE_FORWARD_CONTINUOUS}, emphstyle={[26]\color[rgb]{0,0,1}},
    	emph={[27]MOVE_FORWARD_DEGREE}, emphstyle={[27]\color[rgb]{0,0,1}},
    	emph={[28]MOVE_BACKWARD_CONTINUOUS}, emphstyle={[28]\color[rgb]{0,0,1}},
    	emph={[29]MOVE_BACKWARD_DEGREE}, emphstyle={[29]\color[rgb]{0,0,1}},
    	emph={[30]TURN_LEFT_DEGREE}, emphstyle={[30]\color[rgb]{0,0,1}},
    	emph={[31]TURN_RIGHT_DEGREE}, emphstyle={[31]\color[rgb]{0,0,1}},
    	emph={[32]STOP_MOVE}, emphstyle={[32]\color[rgb]{0,0,1}},
    	emph={[33]DEFAULT}, emphstyle={[33]\color[rgb]{0,0,1}},
    	emph={[34]p_representation}, emphstyle={[34]\color[rgb]{0,0,1}},
        %Object identifiers ending.
	identifierstyle=\ttfamily,
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\ttfamily\color[rgb]{0.627,0.126,0.941},
	showstringspaces=false,
	basicstyle=\small,
	numberstyle=\footnotesize,
	numbers=left,
	stepnumber=1,
	numbersep=10pt,
	tabsize=2,
	breaklines=true,
	prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
	breakatwhitespace=false,
	aboveskip={1.5\baselineskip},
  columns=fixed,
  upquote=true,
  extendedchars=true,
         showspaces=false,           % Leerzeichen anzeigen ?
         showtabs=false,             % Tabs anzeigen ?
         xleftmargin=17pt,
         framexleftmargin=17pt,
         framexrightmargin=5pt,
         framexbottommargin=4pt,
% frame=single,
% backgroundcolor=\color{lbcolor},
}

 \lstloadlanguages{% Check Dokumentation for further languages ...
         %[Visual]Basic
         %Pascal
         %C
         %C++
         %XML
         %HTML
         Java
 }
    %\DeclareCaptionFont{blue}{\color{blue}}

  %\captionsetup[lstlisting]{singlelinecheck=false, labelfont={blue}, textfont={blue}}
  \usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt,font={bf,footnotesize}}


% Package for margin settings. (Danish=>)til margin opsætning.

%Use only when DocumentClass = report
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%\renewcommand{\sectionmark}[1]{\markright{\thesection{} #1}}
%\lhead[\fancyplain{}{\bfseries\thepage}]
%    {\fancyplain{}{\bfseries\rightmark}}
%%\rhead[\fancyplain{}{\bfseries\leftmark}]
%%    {\fancyplain{}{\bfseries\thepage}}
%\cfoot[]{\flushright\thepage}
